package o;

import android.content.ContentResolver;
import android.content.res.AssetFileDescriptor;
import android.net.Uri;
import androidx.annotation.NonNull;
import java.io.FileNotFoundException;
import java.io.IOException;

public final class sh extends sr<AssetFileDescriptor> {
    protected /* synthetic */ Object ˊ(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {
        return ˎ(uri, contentResolver);
    }

    protected /* synthetic */ void ˊ(Object obj) throws IOException {
        ˏ((AssetFileDescriptor) obj);
    }

    public sh(ContentResolver contentResolver, Uri uri) {
        super(contentResolver, uri);
    }

    protected AssetFileDescriptor ˎ(Uri uri, ContentResolver contentResolver) throws FileNotFoundException {
        AssetFileDescriptor openAssetFileDescriptor = contentResolver.openAssetFileDescriptor(uri, "r");
        if (openAssetFileDescriptor != null) {
            return openAssetFileDescriptor;
        }
        throw new FileNotFoundException("FileDescriptor is null for: " + uri);
    }

    protected void ˏ(AssetFileDescriptor assetFileDescriptor) throws IOException {
        assetFileDescriptor.close();
    }

    @NonNull
    public Class<AssetFileDescriptor> ˋ() {
        return AssetFileDescriptor.class;
    }
}
